namespace Digitalmes.Domain.Sys;

/// <summary>
/// 岗位表
/// </summary>
[SugarTable("sys_post", "岗位表")]
public class SysPost : EntityTenantBase
{
    /// <summary>
    /// 岗位名称
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "分类名称", Length = 32)]
    public string? Name { get; set; }

    /// <summary>
    /// 岗位编码
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "岗位编码", Length = 32)]
    public string? Number { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    [SugarColumn(ColumnDescription = "排序")]
    public int Sort { get; set; } = 1;

    /// <summary>
    /// 岗位状态
    /// </summary>
    [SugarColumn(ColumnDescription = "岗位状态")]
    public bool Status { get; set; } = true;

    /// <summary>
    /// 删除状态
    /// </summary>
    [SugarColumn(ColumnDescription = "删除状态")]
    public bool IsDel { get; set; }

    /// <summary>
    /// 备注信息
    /// </summary>
    [SugarColumn(ColumnDescription = "备注信息", Length = 256)]
    public string? Summary { get; set; }
}
